package 人事管理系统.Tables;

public class Department {
    //部门号DNO，部门名DNAME，部门经理manager
    private String Dno;
    private String Dname;
    private String manager;

    //无参构造
    public Department() {
    }
    //带参构造
    public Department(String dno, String dname, String manager) {
        Dno = dno;
        Dname = dname;
        this.manager = manager;
    }

    //get and set
    public String getDno() {
        return Dno;
    }

    public void setDno(String dno) {
        Dno = dno;
    }

    public String getDname() {
        return Dname;
    }

    public void setDname(String dname) {
        Dname = dname;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    //重写tostring方法
    @Override
    public String toString() {
        return "Department{" +
                "Dno='" + Dno + '\'' +
                ", Dname='" + Dname + '\'' +
                ", manager='" + manager + '\'' +
                '}';
    }
}
